package com.lsl.factory.example1;

import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author Zed
 * @description
 * @date 2023/1/8 20:51
 */
@Slf4j
public class App {
    private static final Logger logger = LoggerFactory.getLogger(App.class);
    public static void main(String[] args) {
        log.info("The alchemist begins his work.");
        Coin coin1 = CoinFactory.getCoin(CoinType.COPPER);
        Coin coin2 = CoinFactory.getCoin(CoinType.GOLD);
        logger.info(coin1.getDescription());
        logger.info(coin2.getDescription());
    }
}
